<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>操作值</title>
    <script type="text/javascript" src="../js/jquery-1.7.2.js"></script>
    <script type="text/javascript">
        $(function () {
            $(":button").click(function () {
                $("input").map(function () {
                    alert($(this).val());
                });
            });
        });
    </script>
</head>
<body>
<input type="text" id="testId">
<input type="text">
<input type="text">
<input type="button" value="点击1" id="btnId">
<input type="button" value="点击2" id="btnId">
<input type="button" value="点击3" id="btnId">
</body>
</html>